package com.attendance.mapper;

import com.attendance.model.Type;
import com.baomidou.mybatisplus.mapper.AutoMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 *
 * Type 表数据库控制层接口
 *
 */
@Mapper
public interface TypeMapper extends AutoMapper<Type> {
    @Select("select * from type t where t.id=#{id}")
    public Type getById(@Param("id") Integer id);

    @Select("select * from type")
    public List<Type> getAll();
}